package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.EmploymentNature;
import com.iengoo.inductionms.service.EmploymentNatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 **/
@RestController
@RequestMapping("/employment_nature")
public class EmploymentNatureController {
    @Autowired
    private EmploymentNatureService employmentNatureService;
    @GetMapping
    public List<EmploymentNature> getEmploymentNature() {
        List<EmploymentNature> employmentNatureList = employmentNatureService.queryAll();
        return employmentNatureList;
    }
}
